<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.hzdl.apple.bean.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<!-- <script type="text/javascript">
    	function b1(){
		
		var timeId = document.getElementById("timeId");
		var x  = new Array("星期日", "星期一", "星期二","星期三","星期四", "星期五","星期六");
		var e = new Date();
		var day = e.getUTCDay();
		timeId.innerHTML = (e.getYear()+1900)+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日   " +x[day];
	}
	</script> -->
<body >

	<%
		User user = (User)session.getAttribute("user");
		
		if( user != null){
			
			
		    
		
	%>
	
	 <header class="nav nav--transparent" >

      <div class="nav__holder" id="sticky-nav">
        <div class="container-fluid">
          <div class="flex-parent">

            <div class="nav__header flex-child clearfix">
              <!-- Logo -->
              <div class="logo-wrap">
                <a href="${path }/home/index" class="logo__link">
                  <img class="logo logo--dark" src="${path }/img/logo/logo2.png" alt="logo">
                  <img class="logo logo--light" src="${path }/img/logo/logo1.png" alt="logo">
                </a>
              </div>
              <button type="button" class="nav__icon-toggle" id="nav__icon-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="nav__icon-toggle-bar"></span>
                <span class="nav__icon-toggle-bar"></span>
                <span class="nav__icon-toggle-bar"></span>
              </button>
            </div> <!-- end nav-header -->

            <nav id="navbar-collapse" class="nav__wrap flex-child collapse navbar-collapse">              
              <ul class="nav__menu">

                <li class="nav__dropdown flex-child active">
                  <a href="#">Mac</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="${path }/home/good?GoodsName=MacBook">MacBook</a></li>  <!-- 跳转MacBook页面 -->
                    <li><a href="${path }/home/good?GoodsName=MacBookAir">MacBook Air</a></li>  <!-- 跳转MacBook Air页面 -->
                    <li><a href="${path }/home/good?GoodsName=MacBook Pro">MacBook Pro</a></li>  <!-- 跳转MacBook Pro页面 -->
                  </ul>
                </li>                

                <li class="nav__dropdown flex-child">
                  <a href="#">iPad</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad">iPad</a>  <!-- 跳转iPad页面 -->
                    </li>                 
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad Pro">iPad Pro</a> <!-- 跳转iPad Pro页面 -->
                    </li>
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad Mini">iPad Mini</a>  <!-- 跳转iPad Mini页面 -->
                    </li>
                  </ul>
                </li>             

                <li class="nav__dropdown flex-child">
                  <a href="#">iPhone</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="${path }/home/good?GoodsName=iPhoneXs">iPhoneXs</a></li> <!-- 跳转iPhoneXs页面 -->
                    <li><a href="${path }/home/good?GoodsName=iPhoneXR">iPhoneXR</a></li>  <!-- 跳转iPhoneXR页面 -->
					<li><a href="${path }/home/good?GoodsName=iPhone8">iPhone8</a></li>   <!-- 跳转iPhone8页面 -->
					<li><a href="${path }/home/good?GoodsName=iPhone7">iPhone7</a></li>   <!-- 跳转iPhone7页面 -->
                  </ul>
                </li>

                <li class="nav__dropdown flex-child">
                  <a href="#">技术支持</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="https://support.apple.com/zh-cn" target="_blank">访问技术支持部门</a></li>
                  </ul>
                </li>
                

                <li class="nav__dropdown flex-child">
                 
                 <%-- 
                	您好！<font color="blue"><a href="#"><%=user.getUName() %>
                	
                  
                	</a>
                	
                	</font> --%>
                	<table>
                	<tr>
                	<td id="timeId" style="color: red"></td>
                	</tr>
                	</table>
                	
                	
                  <a href="#">您好！<font color="blue"><%=user.getUName() %></font></a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="<%=application.getContextPath()%>/user/cart/showCarts">我的购物车</a></li>
                    <li><a href="<%=application.getContextPath()%>/user/order/showOrders">我的订单</a></li>

                    <li><a href="<%=application.getContextPath()%>/home/info">个人信息展示</a></li>
                    <li><a href="<%=application.getContextPath()%>/home/psw">修改密码</a></li>
                     
                    <li><a href="<%=application.getContextPath()%>/home/regist">重新注册</a></li>
                     <li><a href="<%=application.getContextPath()%>/home/msg">留言</a></li>
                     <li><a href="https://support.apple.com/zh-cn">帮助</a></li>
                    <li><a href="<%=application.getContextPath()%>/home/quit">退出</a></li>
                  </ul>
                </li> <!-- end elements -->

              </ul> <!-- end menu -->
            </nav> <!-- end nav-wrap -->         
        
          </div> <!-- end flex-parent -->
        </div> <!-- end container -->

      </div>
    </header> <!-- end navigation -->
    <%
		}else{
	%>
	<header class="nav nav--transparent">

      <div class="nav__holder" id="sticky-nav">
        <div class="container-fluid">
          <div class="flex-parent">

            <div class="nav__header flex-child clearfix">
              <!-- Logo -->
              <div class="logo-wrap">
                <a href="index.html" class="logo__link">
                  <img class="logo logo--dark" src="${path }/img/logo/logo2.png" alt="logo">
                  <img class="logo logo--light" src="${path }/img/logo/logo1.png" alt="logo">
                </a>
              </div>

              <button type="button" class="nav__icon-toggle" id="nav__icon-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="nav__icon-toggle-bar"></span>
                <span class="nav__icon-toggle-bar"></span>
                <span class="nav__icon-toggle-bar"></span>
              </button>
            </div> <!-- end nav-header -->

            <nav id="navbar-collapse" class="nav__wrap flex-child collapse navbar-collapse">              
              <ul class="nav__menu">

                <li class="nav__dropdown flex-child active">
                  <a href="#">Mac</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="${path }/home/good?GoodsName=MacBook">MacBook</a></li>  <!-- 跳转MacBook页面 -->
                    <li><a href="${path }/home/good?GoodsName=MacBookAir">MacBook Air</a></li>  <!-- 跳转MacBook Air页面 -->
                    <li><a href="${path }/home/good?GoodsName=MacBook Pro">MacBook Pro</a></li>  <!-- 跳转MacBook Pro页面 -->
                  </ul>
                </li>                

                <li class="nav__dropdown flex-child">
                  <a href="#">iPad</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad">iPad</a>  <!-- 跳转iPad页面 -->
                    </li>                 
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad Pro">iPad Pro</a> <!-- 跳转iPad Pro页面 -->
                    </li>
                    <li>
                      <a href="${path }/home/good?GoodsName=iPad Mini">iPad Mini</a>  <!-- 跳转iPad Mini页面 -->
                    </li>
                  </ul>
                </li>             

                <li class="nav__dropdown flex-child">
                  <a href="#">iPhone</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="${path }/home/good?GoodsName=iPhoneXs">iPhoneXs</a></li> <!-- 跳转iPhoneXs页面 -->
                    <li><a href="${path }/home/good?GoodsName=iPhoneXR">iPhoneXR</a></li>  <!-- 跳转iPhoneXR页面 -->
					<li><a href="${path }/home/good?GoodsName=iPhone8">iPhone8</a></li>   <!-- 跳转iPhone8页面 -->
					<li><a href="${path }/home/good?GoodsName=iPhone7">iPhone7</a></li>   <!-- 跳转iPhone7页面 -->
                  </ul>
                </li>

                <li class="nav__dropdown flex-child">
                  <a href="#">技术支持</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="https://support.apple.com/zh-cn" target="_blank">访问技术支持部门</a></li>
                  </ul>
                </li>

                <li class="nav__dropdown flex-child">
                	<!-- <font style="color: red">Hi！欢迎来到苹果官网！</font> -->
                	<table>
                	<tr>
                	<td id="timeId" style="color: red"></td>
                	</tr>
                	</table>
                  <a href="#">用户菜单</a>
                  <i class="ui-arrow-down nav__dropdown-trigger"></i>
                  <ul class="nav__dropdown-menu">
                    <li><a href="<%=application.getContextPath()%>/home/login">登录</a></li>
                    <li><a href="<%=application.getContextPath()%>/home/regist">注册</a></li>
                  </ul>
                </li> <!-- end elements -->

              </ul> <!-- end menu -->
            </nav> <!-- end nav-wrap -->         
        
          </div> <!-- end flex-parent -->
        </div> <!-- end container -->

      </div>
    </header> <!-- end navigation -->
	
	<%}%>
</body>
</html>